<template>
  <div style="width: 100%">
    <div>
      <el-table :data="tableData" style="width: 100%">
        <el-table-column prop="date" label="Date" width="180" />
        <el-table-column prop="name" label="Name" width="180" />
        <el-table-column prop="address" label="Address" />
      </el-table>
    </div>
    <div>
      <Table :data="tableData">
        <Column prop="date" label="Date" width="180" />
        <Column prop="name" label="Name" width="180" />
        <Column prop="address" label="Address" width="180" />
      </Table>
    </div>
  </div>
</template>

<script setup>
import { ElTable, ElTableColumn } from "element-plus";
import Table from "./components/Table.vue";
import Column from "./components/Column.vue";
const tableData = [
  {
    date: "2016-05-03",
    name: "Tom",
    address: "No. 189, Grove St, Los Angeles",
  },
  {
    date: "2016-05-02",
    name: "Tom",
    address: "No. 189, Grove St, Los Angeles",
  },
  {
    date: "2016-05-04",
    name: "Tom",
    address: "No. 189, Grove St, Los Angeles",
  },
  {
    date: "2016-05-01",
    name: "Tom",
    address: "No. 189, Grove St, Los Angeles",
  },
];
</script>
